#include "problems/239.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem239)
{
    problem_239::Solution s;
    vector<int> nums{1, 3, -1, -3, 5, 3, 6, 7};
    auto result = s.maxSlidingWindow(nums, 3);
    vector<int> ans{3, 3, 5, 5, 6, 7};
    ASSERT_EQ(result.size(), ans.size());
    for (int i = 0; i < result.size(); ++i)
        ASSERT_EQ(result[i], ans[i]);
}